package elven.codingit.easyutil.dto;

import java.io.Serializable;

/**
 * 文件上传返回通用类
 * @author elven 2016年5月17日
 */
public class FileSaveDto implements Serializable{
	
	private String fileName;
	private String fileSavePath;
	private String fileSaveTime;
	private String fileType;
	
	public FileSaveDto() {
	}
	
	private FileSaveDto(FileBuilder fileBuilder) {
		this.fileName = fileBuilder.fileName;
		this.fileSavePath = fileBuilder.fileSavePath;
		this.fileSaveTime = fileBuilder.fileSaveTime;
		this.fileType = fileBuilder.fileType;
	}

	public static class FileBuilder implements BuilderDto<FileSaveDto>{
		
		private String fileName;
		private String fileSavePath;
		private String fileSaveTime;
		private String fileType;
		
		public FileBuilder(String fileSavePath){
			this.fileSavePath = fileSavePath;
		}
		
		public FileBuilder fileSaveTime(String fileSaveTime){
			this.fileSaveTime = fileSaveTime;
			return this;
		}
		public FileBuilder fileType(String fileType){
			this.fileType = fileType;
			return this;
		}
		public FileBuilder fileName(String fileName){
			this.fileName = fileName;
			return this;
		}
		public FileSaveDto build() {
			return new FileSaveDto(this);
		}
	}
	
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileSavePath() {
		return fileSavePath;
	}
	public void setFileSavePath(String fileSavePath) {
		this.fileSavePath = fileSavePath;
	}
	public String getFileSaveTime() {
		return fileSaveTime;
	}
	public void setFileSaveTime(String fileSaveTime) {
		this.fileSaveTime = fileSaveTime;
	}
	public String getFileType() {
		return fileType;
	}
	public void setFileType(String fileType) {
		this.fileType = fileType;
	}
	
}